import request from './request'
// 获取商品分类数据
export const cateData = () => request.get('categories')
// 获取参数列表数据
export const parameterList = (cateId, activeName) => request.get(`categories/${cateId}/attributes`,
    {
        params: { sel: activeName },
    });
// 修改分类参数
export const editList = (cateId,attrId, data) => request.put(`categories/${cateId}/attributes/${attrId}`,data);
// 添加分类参数
export const addPars = (cateId, data) => request.post(`categories/${cateId}/attributes`,data);
// input框失焦
export const attrInput = (cateId,attrId, data) => request.put( `categories/${cateId}/attributes/${attrId}`,data);
// 删除当前行
export const parDelete = (cateId,attrId) => request.delete( `categories/${cateId}/attributes/${attrId}`);
